/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jigdo.data.template.section.DESCEntries;

import jigdo.data.template.section.TemplateSection;
import jigdo.utils.ByteUtils;
import java.util.*;

/**
 *
 * @author John R Sohn
 */
public class TemplateDESCRawDataEntry extends TemplateDESCEntry  {
  
    public TemplateDESCRawDataEntry(TemplateSection parent, int ordinalPos,long lastOffset)
    {
        super(parent, ordinalPos,lastOffset);
        SourceRanges = new ArrayList<DATARange>();
    }
    /**
     * 6      skipLen       "Length in bytes of area of unmatched data"
     */
    public int SkipLength;
    
    
    public ArrayList<DATARange> SourceRanges;
    
    @Override
     public int ReadEntry(byte[] data, int startindex)
    {
        SkipLength = (int)ByteUtils.GetIntFromBytes(data, startindex, 6);
        startindex+=6;
        
        this.DataSize = this.SkipLength;
        
        return startindex;
    }
}
